import React from 'react';

const UserMessage: React.FC<{ content: string; timestamp: number }> = ({ content, timestamp }) => {
  const time = new Date(timestamp).toLocaleTimeString();
  return (
    <div className="msg user">
      <div>
        <div className="bubble">{content}</div>
        <div className="timestamp" style={{ textAlign: 'right' }}>{time}</div>
      </div>
    </div>
  );
};

export default UserMessage;

